package hashmap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class TestDemo {
    private static final Logger logger = LoggerFactory.getLogger(TestDemo.class);

    public static void main(String[] args) {
        logger.debug("test start");
        Date startDate = new Date();
        Map<String, Integer> map = new HashMap<>();
        for (int i = 0; i < 1000000; i++) {
            map.put("key" + i, i);
        }
        Date endDate = new Date();
        logger.debug("test end");
        logger.debug("total time cost : {}", endDate.getTime() - startDate.getTime());

    }
}
